def contains(str,findStr):
    return str.find(findStr) != -1
def test1():
    count = 0
    even_count = 0
    two1 = 0
    three1 = 0
    big = 0
    small = 0
    four = 0
    for i in range(1, 7):
        for j in range(1, 7):
            for k in range(1, 7):
                count = count + 1
                s = i + j + k
                if s % 2 == 0:
                    even_count = even_count+1

                if 11 <= s <= 17:
                    big = big + 1

                if 4 <= s <= 10:
                    small = small + 1

                if i == 1 and j == 1 and k == 1:
                    three1 = three1 + 1

                if i == 1 and j == 1:
                    two1 = two1 + 1

                elif i == 1 and k == 1:
                    two1 = two1 + 1

                elif j == 1 and k == 1:
                    two1 = two1 + 1


                str_t = "%s%s%s" % (i, j, k)
                if (contains(str_t,"1") and contains(str_t,"2")) or (contains(str_t,"3") and contains(str_t,"4")):
                    four = four + 1
                    p_str = "%s %s" % (four,str_t)
                    print(p_str )

    print("%s times,even_count=%s,two1=%s,three1=%s,big=%s,small=%s four=%s" % (count, even_count, two1, three1,big,small,four))
test1()
